﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace PCC.Framework.Utils
{
    public class StringHelper
    {
        public static string[] SplitString(string str, char splitChar)
        {
            if (string.IsNullOrEmpty(str))
            {
                return new string[] { };
            }
            return str.Split(new char[] { splitChar }, StringSplitOptions.RemoveEmptyEntries);
        }

        public static string[] SplitString(string str)
        {
            return SplitString(str, ',');
        }
    }
}
